#ifndef CLIENT_H
#define CLIENT_H

#include <QObject>
#include <QTcpSocket>

class Client : public QTcpSocket
{
    Q_OBJECT
public:
    Client(QObject * parent = 0);
signals:
    //当dataRecive时，发出updateClients信号，由
    void updateClients(QString msg, int length);
    //另一个disconnected()
    void disconnected(int);
protected slots:
    void dataRecive();
    void slotDisconnected();
};

#endif // CLIENT_H
